#!/bin/bash

M2_REPO="/home/luca/.m2/repository"
CP="$M2_REPO/code/lucamarrocco/deployr-app/1.0/deployr-app-1.0.jar"
CP="$CP:$M2_REPO/code/lucamarrocco/deployr-core/1.0/deployr-core-1.0.jar"
CP="$CP:$M2_REPO/code/lucamarrocco/deployr-httpclient/1.0/deployr-httpclient-1.0.jar"
CP="$CP:$M2_REPO/code/lucamarrocco/deployr-http/1.0/deployr-http-1.0.jar"
CP="$CP:$M2_REPO/commons-codec/commons-codec/1.3/commons-codec-1.3.jar"
CP="$CP:$M2_REPO/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar"
CP="$CP:$M2_REPO/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar"
CP="$CP:$M2_REPO/org/hamcrest/hamcrest-all/1.1/hamcrest-all-1.1.jar"
CP="$CP:$M2_REPO/net/java/dev/jets3t/jets3t/0.6.1/jets3t-0.6.1.jar"
CP="$CP:$M2_REPO/net/java/dev/jets3t/jets3t/0.6.1/jets3t-0.6.1.jar"
CP="$CP:$M2_REPO/net/sf/json-lib/json-lib/2.2.3/json-lib-2.2.3-jdk15.jar"
CP="$CP:$M2_REPO/commons-lang/commons-lang/2.4/commons-lang-2.4.jar"
CP="$CP:$M2_REPO/net/sf/ezmorph/ezmorph/1.0.6/ezmorph-1.0.6.jar"
CP="$CP:$M2_REPO/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar"
CP="$CP:$M2_REPO/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar"


java -cp $CP deployr.core.UpdateProcess `pwd` deployr:deployr:1.0 files.deployr.com target/deployr-sampleapp-1.0 $1 $2 $3
